package com.example.earthquake.broadcast;

import com.example.earthquake.service.EarthquakeService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class EarthquakeAlarmReceiver extends BroadcastReceiver {

	public static final String ACTION_REFRESH_EARTHQUAKE_ALARM = "com.example.earthquake.broadcast.ACTION_REFRESH_EARTHQUAKE_ALARM";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		
		Log.i("EarthquakeAlarmReceiver", "receive broadcast");
		
		Intent startIntent = new Intent(context, EarthquakeService.class);
		context.startService(startIntent);
	}

}
